﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SearchNewsByDate.ascx.cs" Inherits="GUI.Controls.News.SearchNewsByDate" %>
<div class="mgt15 fl" id="divSearchNewsByDate" runat="server">
    <div class="view-searchdate">
        Xem theo ngày tháng:</div>
    &nbsp;
    <select id="ddlDay" class="clsinput-search">
        <asp:Literal ID="ltrDay" runat="server"></asp:Literal>
    </select>
    &nbsp;
    <select id="ddlMonth" class="clsinput-search">
        <asp:Literal ID="ltrMonth" runat="server"></asp:Literal>
    </select>
    &nbsp;
    <select id="ddlYear" class="clsinput-search">
        <asp:Literal ID="ltrYear" runat="server"></asp:Literal>
    </select>
    &nbsp;
    <input type="button" value="Xem" class="btdate" id="btnSearchNewsByDate" />
</div>
<script type="text/javascript">
    $("#btnSearchNewsByDate").click(function () {
        var day = $('#ddlDay').val();
        var month = $('#ddlMonth').val();
        var year = $('#ddlYear').val();
        var catUrl = $("#hidCatUrl").val();
        var url = String.format("/{0}/tin-theo-ngay/{1}-{2}-{3}.htm", catUrl, day, month, year);
        window.location.href = url;
    }); 
</script>
